//
//  ChallengeModel.h
//  JiuLe
//
//  Created by 黄鑫 on 2016/11/1.
//  Copyright © 2016年 Fine. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ChallengeYourselfType) {
    ChallengeYourselfTypeHome = 0,  //主界面
    ChallengeYourselfTypeSet,       //设置数据界面
};

typedef NS_ENUM(NSInteger, SetType) {
    SetTypeDefault = 0,     //默认不选中任何一个
    SetTypeDistance,        //选择挑战距离
    SetTypeTime,            //设置挑战时间
    SetTypeHeat,            //设置挑战热量
};

@interface ChallengeModel : NSObject
@property (assign, nonatomic) ChallengeYourselfType challengeYourselfType;
@property (assign, nonatomic) SetType setType;
@property (strong, nonatomic, nonnull) UITableView *tableViewMain;
@property (strong, nonatomic, nonnull) NSString *strDistance;
@property (strong, nonatomic, nonnull) NSString *strTime;
@property (strong, nonatomic, nonnull) NSString *strHeat;
@property (strong, nonatomic, nonnull) UIButton *btnDistance;
@property (strong, nonatomic, nonnull) UIButton *btnTime;
@property (strong, nonatomic, nonnull) UIButton *btnHeat;
@property (strong, nonatomic, nonnull) UIButton *btnStart;
@property (strong, nonatomic, nonnull) UIButton *btnSelect;
@property (strong, nonatomic, nonnull) UIButton *btnUnselect;
@property (strong, nonatomic, nonnull) UILabel *labTiele;
@property (strong, nonatomic, nonnull) UILabel *labUnit;
@property (strong, nonatomic, nonnull) UILabel *labNumber;
@property (strong, nonatomic, nonnull) NSString *number;
@property (assign, nonatomic) BOOL select;
- (nullable ChallengeModel *)initWithChallengeModel:(nonnull UIView *)tableView;

- (void)initSetView:(nonnull UIView *)tableView;

- (void)setSetType:(SetType)setType;
@end
